package com.bootdo.sell.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.sell.dao.SpDao;
import com.bootdo.sell.domain.SpDO;
import com.bootdo.sell.service.SpService;



@Service
public class SpServiceImpl implements SpService {
	@Autowired
	private SpDao spDao;
	
	@Override
	public SpDO get(Integer sid){
		return spDao.get(sid);
	}
	
	@Override
	public List<SpDO> list(Map<String, Object> map){
		return spDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return spDao.count(map);
	}
	
	@Override
	public int save(SpDO sp){
		return spDao.save(sp);
	}
	
	@Override
	public int update(SpDO sp){
		return spDao.update(sp);
	}
	
	@Override
	public int remove(Integer sid){
		return spDao.remove(sid);
	}
	
	@Override
	public int batchRemove(Integer[] sids){
		return spDao.batchRemove(sids);
	}
	
}
